package com.huawei.chengdu.meetingdemo.view.dialogs;

import android.app.Dialog;
import android.content.Context;
import android.widget.LinearLayout;

import androidx.annotation.NonNull;

import com.huawei.chengdu.meetingdemo.R;

public class NoLicenseDialog extends Dialog {
    private static final String TAG = NoLicenseDialog.class.getSimpleName();
    private LinearLayout confirmBtn;

    public NoLicenseDialog(@NonNull Context context) {
        super(context);
        setContentView(R.layout.no_license_dialog);
        confirmBtn = findViewById(R.id.confirm_float_permission);
        initListener();
    }

    @Override
    public void show() {
        setCanceledOnTouchOutside(false);
        super.show();
    }

    private void initListener() {
        confirmBtn.setOnClickListener((v -> {
            dismiss();
        }));
    }
}
